package org.jeecg.modules.paycenter.channel.tonglian;

import org.jeecg.modules.paycenter.enums.PayChannelEnum;
import org.jeecg.modules.paycenter.service.BasePayChannelService;
import org.jeecg.modules.paycenter.service.IPayChannelService;
import org.jeecg.modules.wlhy.tlaccount.service.IHyTlAccountService;
import org.jeecg.modules.wlhy.utils.HyCfgUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class TongLianPayChannelService extends BasePayChannelService implements IPayChannelService {

    @Autowired
    private TongLianPayService payService;

    @Autowired
    private IHyTlAccountService tlAccountService;

    //region base
    @Override
    public PayChannelEnum getChannelEnum() {
        return PayChannelEnum.TONGLIAN;
    }

    @Override
    public String getChannel() {
        return PayChannelEnum.TONGLIAN.channelType;
    }

    @Override
    public boolean checkChannel() {
        return HyCfgUtil.isTongLianUsed();
    }
    //endregion

}
